<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
request.setAttribute("locale",request.getLocale());
%> 
<style type="text/css">
	ul.rightTools {float:right; display:block;}
	ul.rightTools li{float:left; display:block; margin-left:5px}
</style>
<script type="text/javascript">
</script>

<div class="tabs">
	<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
				<li><a href="javascript:;"><span>登陆列表</span></a></li>
			</ul>
		</div>
	</div>
	<div class="tabsContent">
		<div>
			<div class="panel collapse">
				<h1>高级查询</h1>
				<div>
					<form onsubmit="return navTabSearch(this);" action="<c:url value="/log/goLoginLogIndex.shtml"/>" method="post">
					<div class="searchBar">
						<table class="searchContent">
							<tr>
								<td>
									所属机构：
								</td>
								<td>
									<input type="text" name="login_query_orgId" id="login_query_orgId" value="${login_query_orgId}" maxlength="20"/>
								</td>
								<td>
									登录人员：
								</td>
								<td>
									<select name="login_query_actId" id="login_query_actId">
					                	<option value="">--请选择--</option>
					                </select>
								</td>
								<td>
									登录时间段：
								</td>
								<td class="dateRange">
									<input class="date" type="text" id="login_query_lgnTimeStart" name="login_query_lgnTimeStart" format="yyyy-MM-dd HH:mm:ss" pattern="yyyy-MM-dd HH:mm:ss" value="${login_query_lgnTimeStart}" readonly="readonly">
									<span class="limit">-</span>
									<input class="date" type="text" id="login_query_lgnTimeEnd" name="login_query_lgnTimeEnd" format="yyyy-MM-dd HH:mm:ss" pattern="yyyy-MM-dd HH:mm:ss" value="${login_query_lgnTimeEnd}" readonly="readonly">
		               			</td>
							</tr>
						</table>
						<div class="subBar">
							<ul>
								<li><div class="buttonActive"><div class="buttonContent"><button type="submit"><spring:message code="search.btnQuery"/></button></div></div></li>
							</ul>
						</div>
					</div>
					</form>
				</div>
			</div>
			<div id="jbsxBox" class="unitBox">
				<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
					<div class="panelBar">
						<ul class="toolBar">
        					<c:if test="${p:isPower('/log/exportLoginAll.shtml',sessionScope.loginAccount)}">
							<li><a class="icon" href="<c:url value="/log/exportLoginAll.shtml"/>" target="dwzExport" targetType="navTab" title="确实要导出这些记录吗?"><span><spring:message code="search.btnExportXls"/></span></a></li>
							</c:if>
						</ul>
					</div>
					<form id="pagerForm" method="post" action="<c:url value="/log/goLoginLogIndex.shtml"/>">
						<input type="hidden" name="pageNum" value="${pageNum}">
						<input type="hidden" name="numPerPage" value="${numPerPage}">
						<input type="hidden" name="login_query_orgId" value="${login_query_orgId}">
						<input type="hidden" name="login_query_actId" value="${login_query_actId}">
						<input type="hidden" name="login_query_lgnTimeStart" value="${login_query_lgnTimeStart}">
						<input type="hidden" name="login_query_lgnTimeEnd" value="${login_query_lgnTimeEnd}">
					</form>
					<table class="table" width="100%" layoutH="234">
						<thead>
							<tr>
								<th width="22"><input type="checkbox" group="loginIds" class="checkboxCtrl"></th>
								<th>所属机构</th>
								<th>登录人员</th>
								<th>登录IP</th>
								<th>登录时间</th>
								<th>登出时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${loginList}" var="login">
							<tr target="sid_user" rel="${login.lgnLogId}">
								<td><input name="loginIds" value="${login.lgnLogId}" type="checkbox"></td>
								<td>${login.orgName}</td>
								<td>${login.memName}</td>
								<td>${login.lgnIp}</td>
								<td><fmt:formatDate value="${login.lgnTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								<td><fmt:formatDate value="${login.lgtTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								<td>
        							<c:if test="${p:isPower('/log/goOperLogIndex.shtml',sessionScope.loginAccount)}">
									<a title="操作列表<spring:message code="search.lnkGoDetail"/>" target="navTab" rel="opeLogListPage" href="<c:url value="/log/goOperLogIndex.shtml"/>?oper_query_lgnLogId=${login.lgnLogId}" class="btnView"><spring:message code="search.lnkGoDetail"/></a>
									</c:if>
								</td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="panelBar">
						<div class="pages">
							<span>显示</span>
							<select class="numPerPageSet" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
								<option value="15">15</option>
								<option value="30">30</option>
								<option value="50">50</option>
							</select>
							<span>条，共${totalCount}条</span>
						</div>
						<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${numPerPage}" pageNumShown="5" currentPage="${currentPage}"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="tabsFooter">
		<div class="tabsFooterContent"></div>
	</div>
</div>